package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInNon1008Mapper;
import com.ims.core.doc.domain.TInNon1008;
import com.ims.core.doc.service.ITInNon1008Service;

/**
 * 过路费发票1008Service业务层处理
 *
 * @author IMS
 * @date 2024-11-20
 */
@Service
public class TInNon1008ServiceImpl implements ITInNon1008Service
{
    @Autowired
    private TInNon1008Mapper tInNon1008Mapper;

    /**
     * 查询过路费发票1008
     *
     * @param id 过路费发票1008主键
     * @return 过路费发票1008
     */
    @Override
    public TInNon1008 selectTInNon1008ById(Long id)
    {
        return tInNon1008Mapper.selectTInNon1008ById(id);
    }

    /**
     * 查询过路费发票1008列表
     *
     * @param tInNon1008 过路费发票1008
     * @return 过路费发票1008
     */
    @Override
    public List<TInNon1008> selectTInNon1008List(TInNon1008 tInNon1008)
    {
        return tInNon1008Mapper.selectTInNon1008List(tInNon1008);
    }

    /**
     * 新增过路费发票1008
     *
     * @param tInNon1008 过路费发票1008
     * @return 结果
     */
    @Override
    public int insertTInNon1008(TInNon1008 tInNon1008)
    {
        tInNon1008.setCreateTime(DateUtils.getNowDate());
        return tInNon1008Mapper.insertTInNon1008(tInNon1008);
    }

    /**
     * 修改过路费发票1008
     *
     * @param tInNon1008 过路费发票1008
     * @return 结果
     */
    @Override
    public int updateTInNon1008(TInNon1008 tInNon1008)
    {
        tInNon1008.setUpdateTime(DateUtils.getNowDate());
        return tInNon1008Mapper.updateTInNon1008(tInNon1008);
    }

    /**
     * 批量删除过路费发票1008
     *
     * @param ids 需要删除的过路费发票1008主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1008ByIds(Long[] ids)
    {
        return tInNon1008Mapper.deleteTInNon1008ByIds(ids);
    }

    /**
     * 删除过路费发票1008信息
     *
     * @param id 过路费发票1008主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1008ById(Long id)
    {
        return tInNon1008Mapper.deleteTInNon1008ById(id);
    }
}
